<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <meta http-equiv='X-UA-Compatible' content='ie=edge'>
    <title>Document</title>
</head>

<body>
    <div id='app'>
        <com-a></com-a>
    </div>
    <script src='../js/vue.js'></script>
    <script>
        const comb = {
            props: ['arr'],
            template: `<div>组件22 {{arr}}---{{arr[0]}}</div>`
        };
        Vue.component('com-a', {
            template: `<div>组件11<com-b :arr="[1,2,3]"></com-b> </div>`,
            data() {
                return {
                    parr: [1, 2, 3]
                }
            },
            components: {
                'com-b': comb
            }
        })


        const vm = new Vue({
            el: '#app',
            data: {},
            methods: {},
        })
    </script>
</body>

</html>